setChangeAddress
readonly setChangeAddress!: ( changeAddr: Address | AddressStr ) => TxBuilderRunner
changeAddr
:Address
|AddressStr
explicitly sets the change address;
if missing, an attempt to call the ITxRunnerProvider
getChangeAddress
method is done
if still missing the first input's address with PubKeyHash
payment credentials (not script) will be used
if all the above fail, a call to the build
method will throw an Error
.
returns a reference to the same TxBuilderRunner
.